<!--
 * @Author: fengYM feng25321@163.com
 * @Date: 2023-09-22 11:15:56
 * @LastEditors: fengYM feng25321@163.com
 * @LastEditTime: 2023-10-13 16:09:53
 * @Description: 
-->
<template>
  <view class="itemBox">
    <view class="firstLine">
      <view class="l">订单号:{{ info.orderNo }}</view>
      <view class="r">余额支付</view>
    </view>
    <view class="timeLine">{{ dayjs(info.gmtCreate).format("YYYY-MM-DD HH:ss:mm") }}</view>
    <view class="nameBox">
      <image class="img" :src="info.goodUrl" mode=""></image>
      <view class="nameInfo">
        <view class="f">{{ info.goodTitle }}</view>
        <view class="t">
          <view class="l">x{{ info.goodSum }}</view>
          <view class="price">
            <text>￥</text>
            {{ info.actualAmount }}
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">
import dayjs from "dayjs";
import { useStore } from "../stores/counter";

const { info } = defineProps<{
  info: any;
}>();
const { orderType } = useStore();
</script>

<style lang="less" scoped>
.itemBox {
  background: #ffffff;
  border-radius: 16rpx;
  padding: 24rpx 32rpx;
  margin-bottom: 20rpx;
  .firstLine {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .l {
      font-size: 24rpx;
      color: #1e1e1e;
      line-height: 34rpx;
    }
    .r {
      font-size: 26rpx;
      font-weight: 500;
      color: #02409a;
      line-height: 36rpx;
    }
  }
  .timeLine {
    font-size: 24rpx;
    color: #999999;
    line-height: 30rpx;
    margin-top: 8rpx;
    margin-bottom: 24rpx;
  }
}
.nameBox {
  background: #ffffff;
  border-radius: 16rpx;

  display: flex;
  align-items: center;
  margin-bottom: 20rpx;

  .img {
    width: 144rpx;
    height: 144rpx;
    margin-right: 24rpx;
    background: #bebebe;
  }
  .nameInfo {
    width: calc(100% - 168rpx);
    .f {
      font-size: 28rpx;
      font-weight: 500;
      color: #333333;
      line-height: 36rpx;
      text {
        margin-right: 24rpx;
      }
    }
    .s {
      font-size: 26rpx;
      color: #bebebe;
      line-height: 36rpx;
      margin-top: 8rpx;
    }
    .t {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 20rpx;
      .l {
        font-size: 24rpx;
        color: #bebebe;
        line-height: 34rpx;
      }
      .price {
        font-size: 30rpx;
        font-weight: bold;
        color: #ec553e;
        line-height: 34rpx;
        text {
          font-size: 24rpx;
          font-weight: 500;
          margin-right: -15rpx;
        }
      }
    }
  }
}
.btnList {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1rpx solid #f9f9f9;
  padding-top: 20rpx;
  .btn-type {
    border-radius: 32rpx;
    border: 2rpx solid #dddee2;
    font-size: 28rpx;
    color: #333333;
    line-height: 40rpx;
    text-align: center;
    padding: 12rpx 24rpx;
    margin-right: 20rpx;
    &:last-child {
      margin-right: 0;
    }
  }
  .blue {
    background: #02409a;
    color: #fff;
  }
}
</style>
